package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.Staff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 员工 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-11-01
 */
public interface StaffMapper extends BaseMapper<Staff> {
    @Select("SELECT COUNT(id) FROM staff WHERE phone = #{phone} and deleted = 0")
    public abstract Integer staffCountByPhone(@Param("phone") String phone);

}
